package com.yunban.project.api.text_check.dto;

import com.yunban.project.api.text_check.enums.CorrectionModel;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @author: lijiajun
 * @date: 2024-11-19
 * @version: 1.0
 */
@Data
@Schema(description = "文本纠错记录请求参数")
public class CorrectionInfoReq implements Serializable {
    @Serial
    private final static long serialVersionUID = 1L;

    @Schema(description = "解析类型")
    @NotNull(message = "解析类型 {checkType} 不能为空")
    private CorrectionModel parseType;

    @Schema(description = "文件名称")
    @NotBlank(message = "文件名称 {fileName} 不能为空")
    private String fileName;

    @Schema(description = "文件MD5")
    @NotBlank(message = "文件MD5 {fileMd5} 不能为空")
    private String fileMd5;

    @Schema(description = "原始文本")
    @NotBlank(message = "原始文本 {originalText} 不能为空")
    private String originalText;

    @Schema(description = "纠错文本")
    private String correctedText;

    @Schema(description = "分词信息")
    private List<String> tokenizedList;
}
